/**
 * This is a single step in a route.
 * It contains the geographical coordinates of the steps location and
 * a textual description for a step by step description of the route.
 * 
 * @author Kim Pommert
 * @version %I%, %G%
 */
qx.Class.define("qooxdoosample.cocktail.util.Step",
{
	extend: qx.core.Object,
	
	/**
	 * Class constructor.
	 * Instantiates an object of that class.
	 * 
	 * @param position	{qooxdoosample.cocktail.util.LatLng} 
	 * 						The geographical coordinates of the steps location.
	 */
	construct: function(position)
	{
		this.setPosition(position);
	},
	
	properties :
	{
    	/**
    	 * The geographical coordinates of the steps location.
    	 */
    	position:
    	{
      		nullable: true,
      		init: null,
      		check: "qooxdoosample.cocktail.util.LatLng"
      	},
      	
      	/**
      	 * A textual description of this step of the route.
      	 */
      	description:
      	{
      		nullable: true,
      		init: null,
      		check: "String"
      	},
      	
      	/**
      	 * The distance from the previous step to that step.
      	 * The default unit of the distance is meters.
      	 */
      	distance:
      	{
      		nullable: true,
      		init: null,
      		check: "Number"
      	},
      	
      	/**
      	 * The duration from the previous step to that step.
      	 * The default unit of the duration is seconds.
      	 */
      	duration:
      	{
      		nullable: true,
      		init: null,
      		check: "Integer"
      	}
	}
	
});